package com.hockeo.client.ui.views;

import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.user.client.ui.Widget;
import com.hockeo.client.ui.base.tree.VHTree;
import com.hockeo.shared.VHUtil;

/**
 * View that builds the application's navigation/info section.
 *
 * @version $Id$
 * @author jjanke
 */
public class NavigationView extends ContentPanel implements IView
{
  private VHTree d_tree;

  public NavigationView()
  {
    setLayout( new FitLayout() );
    setHeading( VHUtil.constants().navHeader() );

    d_tree = new VHTree( new NavigationTreeConfig() );
    add( d_tree );
  }

  @Override
  public Widget getViewWidget()
  {
    return this;
  }

}
